package adsi.domain;

import java.util.*;
import adsi.persistence.*;

public class EquipmentMaintenance {
    private long ID;
    private Calendar maintenanceDate;
    private long maintenanceID;
    private long equipmentID;
    
    public EquipmentMaintenance() {
        //values of -1 means no valid value.
        ID = -1;
        maintenanceDate = null;
        maintenanceID = -1;
        equipmentID = -1;
    }

    public long getID() {
        return ID;
    }

    public void setID(long ID) throws EntityException {
        //Only DataService should set ID's, so we make sure the calling method
        //is of interfase DataServiceModel.

        this.ID = ID;
    }

    public Calendar getMaintenanceDate() {
        return maintenanceDate;
    }

    public void setMaintenanceDate(Calendar maintenanceDate) {
        this.maintenanceDate = maintenanceDate;
    }

    public long getMaintenanceID() {
        return maintenanceID;
    }

    public void setMaintenanceID(long maintenanceID) {
        this.maintenanceID = maintenanceID;
    }

    public long getEquipmentID() {
        return equipmentID;
    }

    public void setEquipmentID(long equipment) {
        this.equipmentID = equipment;
    }
}
